;;; autocomplete.cfg.el --- Summary
;;; Commentary:
;;; auto completion configuration
;;; Code:

(require 'package.cfg)

(package-install-if-absent 'company)
(use-package company
  :init
  (add-hook 'after-init-hook 'global-company-mode)
  :config
  ;; Align annotations to the right hand side
  (setq company-tooltip-align-annotations t)
  :diminish company-mode
  :bind ("M-SPC" . company-complete))

(package-install-if-absent 'helm-company)
(use-package helm-company
  :config
  (progn
    (define-key company-mode-map (kbd "C-.") 'helm-company)
    (define-key company-active-map (kbd "C-.") 'helm-company)))

(provide 'autocomplete.cfg)
;;; autocomplete.cfg.el ends here
